package org.jsola.hr.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.jsola.core.dto.BaseDTO;

import javax.validation.constraints.NotNull;

import static org.jsola.hr.example.AttendanceMonthlyArchiveExample.E_COMPANY_ID;
import static org.jsola.hr.example.AttendanceMonthlyArchiveExample.E_EMP_COST;
import static org.jsola.hr.example.AttendanceMonthlyArchiveExample.E_EMP_SOC_PF;
import static org.jsola.hr.example.AttendanceMonthlyArchiveExample.E_EMP_TAX_BEFORE;
import static org.jsola.hr.example.AttendanceMonthlyArchiveExample.E_MONTH;
import static org.jsola.hr.example.AttendanceMonthlyArchiveExample.E_REMARK;
import static org.jsola.hr.example.AttendanceMonthlyArchiveExample.E_STATUS;
import static org.jsola.hr.example.AttendanceMonthlyArchiveExample.E_YEAR;
import static org.jsola.hr.example.AttendanceMonthlyArchiveExample.M_COMPANY_ID_MAX;
import static org.jsola.hr.example.AttendanceMonthlyArchiveExample.M_COMPANY_ID_NOT_NULL;
import static org.jsola.hr.example.AttendanceMonthlyArchiveExample.M_MONTH_MAX;
import static org.jsola.hr.example.AttendanceMonthlyArchiveExample.M_REMARK_MAX;
import static org.jsola.hr.example.AttendanceMonthlyArchiveExample.M_YEAR_MAX;
import static org.jsola.hr.example.AttendanceMonthlyArchiveExample.N_COMPANY_ID;
import static org.jsola.hr.example.AttendanceMonthlyArchiveExample.N_EMP_COST;
import static org.jsola.hr.example.AttendanceMonthlyArchiveExample.N_EMP_SOC_PF;
import static org.jsola.hr.example.AttendanceMonthlyArchiveExample.N_EMP_TAX_BEFORE;
import static org.jsola.hr.example.AttendanceMonthlyArchiveExample.N_MONTH;
import static org.jsola.hr.example.AttendanceMonthlyArchiveExample.N_REMARK;
import static org.jsola.hr.example.AttendanceMonthlyArchiveExample.N_STATUS;
import static org.jsola.hr.example.AttendanceMonthlyArchiveExample.N_YEAR;

/**
 * 员工考勤月统计归档
 *
 * @author zhr
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "新增【员工考勤月统计归档】的参数")
@Data
public class AttendanceMonthlyArchiveAddDTO extends BaseDTO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(notes = N_COMPANY_ID, example = E_COMPANY_ID, required = true)
    @NotNull(message = M_COMPANY_ID_NOT_NULL)
    @Length(max = 32, message = M_COMPANY_ID_MAX)
    private String companyId;

    @ApiModelProperty(notes = N_YEAR, example = E_YEAR)
    @Length(max = 32, message = M_YEAR_MAX)
    private String year;

    @ApiModelProperty(notes = N_MONTH, example = E_MONTH)
    @Length(max = 32, message = M_MONTH_MAX)
    private String month;

    @ApiModelProperty(notes = N_EMP_COST, example = E_EMP_COST)
    private Long empCost;

    @ApiModelProperty(notes = N_EMP_TAX_BEFORE, example = E_EMP_TAX_BEFORE)
    private Long empTaxBefore;

    @ApiModelProperty(notes = N_EMP_SOC_PF, example = E_EMP_SOC_PF)
    private Long empSocPf;

    @ApiModelProperty(notes = N_STATUS, example = E_STATUS)
    private Integer status;

    @ApiModelProperty(notes = N_REMARK, example = E_REMARK)
    @Length(max = 255, message = M_REMARK_MAX)
    private String remark;


}

